/*
 * @Author: Bob
 * @Date: 2021-03-31 22:38:19
 * @LastEditors: Bob
 * @LastEditTime: 2021-04-06 22:50:36
 */
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config

// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = {
  siteName: 'Gridsome',
  plugins: [
    {
      use: '@gridsome/source-filesystem',
      options: {
        typeName: 'BlogPost',
        path: './content/blog/**/*.md',
      }
    },
    {
        use: '@gridsome/source-strapi',
        options: {
          apiURL: 'http://localhost:1337',
          queryLimit: 1000, // Defaults to 100
          contentTypes: ['posts'],
        //   singleTypes: ['impressum'],
          // Possibility to login with a Strapi user,
          // when content types are not publicly available (optional).
        //   loginData: {
        //     identifier: '',
        //     password: ''
        //   }
        }
      }
  ]
}
